package com.touzi.utils;

import com.touzi.beans.dbs.fenhong.NewFenhong;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;

public class FenhongUtils {

    public static List<NewFenhong> getList(Integer yonghu,String dingdan,int cishu,float jiner,int jiange){

        List<NewFenhong> fenhongs=new ArrayList<>();
        Calendar calendar=DateUtils.getNextDay();
        for (int i=0;i<cishu;i++){
            fenhongs.add(new NewFenhong(yonghu,dingdan,(i+1),jiner,DateUtils.formatDate(calendar)));
            calendar.add(Calendar.HOUR_OF_DAY,jiange);
        }
        return fenhongs;
    }
}
